package server.business.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName(value ="return_blood")
@Data
public class ReturnBlood implements Serializable {

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_creat")
    private Date gmtCreat;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 申请编号
     */
    @TableField(value = "apply_id")
    private String applyId;

    /**
     * 关联编号
     */
    @TableField(value = "related_id")
    private String relatedId;

    /**
     * 申请医院名称
     */
    @TableField(value = "apply_hospital_name")
    private String applyHospitalName;

    /**
     * 退血类型
     */
    @TableField(value = "return_type")
    private String returnType;

    /**
     * 退血原因
     */
    @TableField(value = "reason_of_return")
    private String reasonOfReturn;



    /**
     * 申请人工号
     */
    @TableField(value = "applicant_id")
    private String applicantId;    /**

     * 申请人姓名
     */
    @TableField(value = "applicant")
    private String applicant;

    /**
     * 申请时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "apply_time")
    private Date applyTime;


    /**
     * 审核人工号
     */
    @TableField(value = "auditor_id")
    private String auditorId;

    /**
     * 审核时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "audit_time")
    private String auditTime;


    /**
     * 操作人工号
     */
    @TableField(value = "operator_id")
    private String operatorId;

    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "operate_time")
    private Date operateTime;

    /**
     * 驳回原因
     */
    @TableField(value = "reject_reason")
    private String rejectReason;

    /**
     * 状态
     */
    
    @TableField(value = "state")
    private String state;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = -8797207438706562604L;


}
